package com.jufa_3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jufa_3.dto.ChargeRecordVO;
import com.jufa_3.entity.ChargeRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ChargeRecordMapper extends BaseMapper<ChargeRecord> {

    int getSelectRecordCount(String mobile, String keyWord);

    List<Map<String, Object>>  getSelectRecordsReturnMap(String mobile, String keyWord, Integer pageNum, Integer pageSize);

    void addChargeRecord(ChargeRecord chargeRecord);

    List<Integer> statistics();

    List<ChargeRecordVO> getSelectRecord(String openId, String keyWord, int star, int end);

    List<ChargeRecord> getChargeRecord(ChargeRecord cr);
}
